package com.naiterui.ehp.bs.doctor.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bs.doctor.domain.RecordWorkInfo;

/**
 * @author guoyongxiang
 * @date 2020/2/16 15:05
 * @since 1.0.0
 */
@Repository
public interface IRecordWorkInfoRepository extends BaseJpaRepository<RecordWorkInfo, Long> {

    /**
     * 根据用户编码查询工作经历
     *
     * @param userId
     *
     * @return
     */
    List<RecordWorkInfo> findByUserCodeOrderByEndDateDesc(String userCode);

    /**
     * 根据用户编码删除
     *
     * @param userCode
     */
    void removeByUserCode(String userCode);
}
